package com.xingzuo.library_user.ui.fragment;

import com.xingzuo.base.ui.mvp.base.adapter.BaseAdapter;
import com.xingzuo.base.ui.mvp.base.refresh.BaseRecyclerRefreshFragment;
import com.xingzuo.library_user.R;
import com.xingzuo.library_user.adapter.UnscrambleAdapter;
import com.xingzuo.library_user.contract.UnscrambleContract;
import com.xingzuo.library_user.presenter.UnscramblePresenter;

import java.util.ArrayList;

public class UnscrambleFragment extends BaseRecyclerRefreshFragment<UnscrambleContract.View, UnscramblePresenter> {
    private int type;

    public UnscrambleFragment(int type) {
        this.type = type;
    }

    @Override
    public BaseAdapter createRecyclerAdapter() {
        return new UnscrambleAdapter(R.layout.item_unscramble,new ArrayList<>());
    }

    @Override
    public UnscramblePresenter getPresenter() {
        return new UnscramblePresenter();
    }

    @Override
    public void initView() {
        getRefreshLayout().autoRefresh();
    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {

    }
}